added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / VBASPNETAutoLogin / Login.aspx.vb
blob45821db4a20c6a75369296ec60f6702bfef0fb76
1 '\**************************** Module Header ********************************\
2 ' Module Name: Login.aspx.vb
3 ' Project: VBASPNETAutoLogin
4 ' Copyright (c) Microsoft Corporation.
5 '
6 ' This page is used to display the user's login information.
7 '
8 ' This source is subject to the Microsoft Public License.
9 ' See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
10 ' All other rights reserved.
12 ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
13 ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
14 ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
15 '\***************************************************************************/
17 Partial Public Class Login
18 Inherits System.Web.UI.Page
20 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
22 End Sub
25 Protected Sub LoginButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles LoginButton.Click
26 Response.Clear()
27 Response.Write("You have login the website." + "<br>")
28 Response.Write("Your userName:" + Request.Form("UserName").ToString() + "<br>")
29 Response.Write("Your passWord:" + Request.Form("Password").ToString() + "<br>")
30 Response.End()
31 End Sub
32 End Class